Integrated control system and method for controlling mode, synchronization, power factor, and utility outage ride through for micropower generation systems

ABSTRACT

An integrated system for comprehensive control of an electric power generation system utilizes state machine control having particularly defined control states and permitted control state transitions. In this way, accurate, dependable and safe control of the electric power generation system is provided. Several of these control states may be utilized in conjunction with a utility outage ride-through technique that compensates for a utility outage by predictably controlling the system to bring the system off-line and to bring the system back on-line when the utility returns. Furthermore, a line synchronization technique synchronizes the generated power with the power on the grid when coming back on-line. The line synchronization technique limits the rate of synchronization to permit undesired transient voltages. The line synchronization technique operates in either a stand-alone mode wherein the line frequency is synthesized or in a connected mode which sensed the grid frequency and synchronizes the generated power to this senses grid frequency. The system also includes power factor control via the line synchronization technique or via an alternative power factor control technique. The result is an integrated system providing a high degree of control for an electric power generation system.

CROSS-REFERENCE TO RELATED APPLICATIONS

This application is a divisional of U.S. application Ser. No. 09/900,849filed Jul. 3, 2001, the teachings of which are incorporated herein byreference, which is a divisional of U.S. application Ser. No. 09/535,541filed Mar. 27, 2000, now U.S. Pat No. 6,316,918, the teachings of whichalso are incorporated herein by reference, which is a divisional of U.S.application Ser. No. 09/140,391 filed Aug. 26, 1998 now U.S. Pat. No.6,072,302, the teachings of which also are incorporated herein byreference.

BACKGROUND OF THE INVENTION

1. Technical Field of the Invention

This invention relates to control systems and methods for controllinginverter based electrical power generation and feeding of generatedpower to a grid. This invention particularly relates to an integratedcontrol system and method that integrates a variety of power controlfunctions including state machine control of distinct operational modes,synronization with the grid, power factor control and utility outageride-through.

2. Description of Related Art

Various control devices for controlling inverter based electrical powergeneration are known in the art. Typical controllers utilize analogvoltage or current reference signals, synchronized with the grid tocontrol the generated wave form being fed to the grid. Such controllers,however, lack distinct control states and the capability of controllingtransitions between specifically defined control states.

Various techniques for synchronizing the frequency of generated power tothe frequency of a grid are also known in the art. Such conventionalline synchronizers typically sense the line frequency of the grid andlock to the grid when the generated frequency drifts intosynchronization.

Such conventional line synchronizers, however, do not have the abilityto control the rate of phase shift of the generated power or the abilityto interface easily with both 50 Hz and 60 Hz grids.

Various techniques for controlling the power factor are also known inthe art. In the context of electrical power generation, for example,Erdman, U.S. Pat. No. 5,225,712, issued Jul. 6, 1993, discloses avariable wind speed turbine electrical power generator having powerfactor control. The inverter can control reactive power output as apower factor angle or directly as a number of VARs independent of thereal power. To control the reactive power, Erdman utilizes a voltagewaveform as a reference to form a current control waveform for eachoutput phase. The current control waveform for each phase is applied toa current regulator which regulates the drive current that controls thecurrents for each phase of the inverter.

Although the conventional art may individually provide some of thesefeatures, the combination of these features particularly when utilizedin conjunction with an integrated system utilizing state machine controlis not found in the art.

Other applications distinct from electrical power generation alsoutilize power factor control devices. For example, Hall, U.S. Pat. No.5,773,955 issued Jun. 30, 1998, discloses a battery charger apparatusthat controls the power factor by vector control techniques. The controlloop utilized by Hall controls power delivery to the battery to obtain adesired charge profile by individually controlling the real and reactivecomponents of the AC input current. The AC input current is forced tofollow a reference that is generated in response to information receivedby the battery charge control circuit to supply the desired chargingcurrent to and remove discharge current from a battery.

SUMMARY AND OBJECTS OF THE INVENTION

An object of the invention is to provide an integrated system forcontrolling all aspects of inverter based electrical power generationand feeding of generated power to a grid. Another object of theinvention is to provide a state machine having a plurality of definedcontrol states for electric power transformation including a statecontroller that controls permitted transitions between the definedcontrol states.

Another object of the invention is to provide a line synchronizationtechnique that is highly flexible and permits synchronization witheither a 50 Hz or 60 Hz grid as well as providing smooth transitioningfrom a stand-alone mode to a grid-connected mode.

A further object of the invention is to provide a line synchronizationtechnique that can either sense the grid frequency or synthesize afrequency for electrical power generation.

Still another object of the invention is to control there-synchronization rate to provide the smooth transition fromstand-alone mode to a grid-connected mode.

A further object of the invention is to provide a method of controllingan electrical power generator during a utility outage.

Yet another object of the invention is to integrate the inventive methodof utility outage ride-through with various other control techniques toprovide an integrated system.

Still another object of the invention is to provide power factor controlover generated electrical power wherein a simple DC control signalhaving two components commanding the real and reactive components of thegenerated power may be utilized to control the power factor.

The objects of the invention are achieved by providing a state machinehaving a plurality of control states for electric power transformationincluding an initialization state, a first neutral state, a pre-chargestate, a second neutral state, an engine start state, a power on-linestate, a power off-line state, and a shut down state wherein the statecontroller controls state transitions such that only permittedtransitions between control states are allowed to occur. In this way, ahigh degree of control can be achieved for electrical power generatingand feeding of electrical power to a grid. In this way, the safety andreliability of the system can be ensured.

The objects of the invention are further achieved by a method ofcontrolling real and reactive power developed by a main inverter in anelectrical power generation control device including the steps ofsampling the three-phase currents output from the inverter, transformingthe sampled three-phase current data to two-phase current data,transforming the two-phase current data to a rotating reference frame,controlling an output voltage according to a comparison result between aDC reference signal having real and reactive reference signalcomponents, transforming the output voltage to a stationary referenceframe, transforming the stationary reference frame output voltage to athree-phase reference signal, and controlling the inverter based on thethree-phase reference signal. By utilizing such a control method, the DCreference signal can be input by an operator or a utility feeding thegrid to thereby designate the real and reactive power output by thecontrolled inverter.

The objects of the invention are further achieved by providing a linefrequency synchronization apparatus and method that utilizes a frequencysensor that samples the frequency of the grid or a synthesizer thatsynthesizes a grid frequency. In the case of sampled grid frequency, thefrequency sensor signal is converted by an A/D converter that iscontrolled by initiating the conversion and reading of the digital valueat a fixed frequency. This fixed frequency establishes the time base forwhich the invention can compute the actual frequency of the signal; Thisis further accomplished by determining when the falling or rising edgeof the signal occurs and counting the number of samples therebetween.

In this way, a synchronization error signal is generated that can beutilized to bring the generated power into synchronization with a gridor the synthesized grid frequency. Furthermore, the synchronizationshift rate is preferably limited in order to provide a smoothtransition.

The objects of the invention are further achieved by providing a utilityoutage ride-through method and apparatus that detects a fault conditionindicating that the electrical power generation device should bedisconnected from the grid, opens a contactor that connects the deviceto the grid, clears a time counter, sets a mode to an off-line mode,commands the inverter within the device to perform off-line voltagecontrol, and waits for a predetermined time period after all faultconditions have been cleared before setting the mode to an on-linecurrent control mode, enabling the inverter and thereafter closing thecontactor to reestablish the connection to the grid.

Further scope of applicability of the present invention will becomeapparent from the detailed description given hereinafter. However, itshould be understood that the detailed description and specificexamples, while indicating preferred embodiments of the invention, aregiven by way of illustration only, since various changes andmodifications within the spirit and scope of the invention will becomeapparent to those skilled in the art from this detailed description.

BRIEF DESCRIPTION OF THE DRAWINGS

The present invention will become more fully understood from thedetailed description given hereinbelow and the accompanying drawingswhich are given by way of illustration only, and thus are not limitativeof the present invention, and wherein:

FIG. 1 is a high-level block diagram illustrating the major componentsof a microturbine generator system that may be controlled according tothe invention;

FIG. 2 is a high-level block diagram of a small grid-connectedgeneration facility which is another example of a generation facilitythat may be controlled according to the invention;

FIG. 3 is a system block diagram of an electrical power generatoraccording to the invention illustrating major components, data signalsand control signals;

FIG. 4 is a detailed circuit diagram of a line power unit that may becontrolled according to the invention;

FIG. 5(a) is a state diagram according to a first embodiment of theinvention that illustrates the control states and permitted controlstate transitions according to the invention;

FIG. 5(b) is another state diagram illustrating a second embodimentaccording to the invention showing the control states and permittedcontrol state transitions according to the invention;

FIG. 6(a) is a block diagram illustrating a line synchronizationapparatus according to the invention;

FIG. 6(b)-(d) illustrate synchronization and phase-shift angles in acoordinated diagram showing relative positions and transitions of thesignals according to the invention;

FIGS. 7(a)-(b) are flow charts illustrating the line synchronizationmethod according to the invention;

FIG. 8 is a flow chart illustrating the utility outage ride-throughmethod according to the invention; and

FIG. 9 is a control-loop block diagram illustrating the power factorcontrol method according to the invention.

DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS

FIG. 1 illustrates the major components of a line-power unit 100containing the inventive control devices and methods and the overallrelationship to a microturbine generator. As shown, the microturbinegenerator system includes two major components: the turbine unit 10 andthe line-power unit 100 may be arranged as shown in FIG. 1.

The turbine unit 10 includes a motor/generator 15 and an engine controlunit 12. The turbine unit 10 is supplied with fuel. For example, themotor/generator 15 may be constructed with an Allied Signal TurboGenerator™ which includes a turbine wheel, compressor, impeller andpermanent magnet generator which are all mounted on a common shaft. Thiscommon shaft is supported by an air bearing which has a relatively highinitial drag until a cushion of air is developed at which point the airbearing is nearly frictionless.

The motor (engine) in the motor/generator 15 is controlled by the enginecontrol unit 12 which, for example, throttles the engine according tothe demand placed upon the generator. Communication is provided betweenthe turbine unit 10 and the line power unit 100 as shown by thecontrol/data line connecting these units in FIG. 1. This data includesoperating data such as turbine speed, temperature etc. as well asfaults, status and turbine output.

The motor/generator 15 supplies three-phase (3φ) electrical power to theline power unit 100 as further shown in FIG. 1. The line power unit 100also supplies three-phase auxiliary power (3φ Aux) to the turbine unit10.

The line power unit 100 contains three basic components. The line powerunit controller 200, starter 220 and utility interface 240 are allincluded within line power unit 100. Furthermore, an operator interfacethat permits an operator to monitor and control the line power unit isfurther provided. The operator interface may include a front paneldisplay for displaying critical operating data as well as controls suchas a shut down switch and power level command input as further describedbelow.

A DC bus supplies DC power to the line power unit 100 to permit off-gridstarting of the turbine unit. Furthermore, the utility interface 240supplies three-phase electrical power to the utility grid 99 as well asan optional neutral line. The line power unit 100 also receives utilityauthorization from a utility company which authorizes connection to thegrid 99.

FIG. 2 illustrates a small grid-connected generation facility showingsome of the details of the components controlled by this invention. Moreparticularly, a turbine generator 15 generates AC power that is suppliedto rectifier 60. The AC power is then converted into DC power byrectifier 60 and supplied to DC link consisting of DC bus 61 andcapacitor 62 connected across DC bus 61.

An inverter 70 transforms the DC voltage on the DC link into athree-phase AC waveform that is filtered by inductor 72 and thensupplied to the utility 99 via contactor K1.

As further discussed below in relation to FIG. 3, the invention controlsthe inverter 70 and contactor K1 as well as other components. FIG. 2 isactually a simplified diagram illustrating the necessary components forutility outage ride-through. Other components illustrated in FIGS. 3 and4 are necessary for other types of control exercised by the inventionsuch as power factor and synchronization.

FIG. 3 is a system block diagram illustrating a generation facility thatmay be controlled according to the invention. The generation facilityincludes a turbine generator 15 generating AC power supplied torectifier 60. This AC power is converted by rectifier 60 into DC voltagesupplied to the DC link. This DC link may have the same construction asshown in FIG. 2. The inverter 70 transforms DC power from the DC linkinto three-phase AC power that is fed to the grid 99 via inductor unit72 and contactor K1. Power may also be supplied directly to the internalloads via a connection to the output of the inverter 70.

The controller 200 receives a sensed voltage from the DC link as well asthe output AC current from the inverter 70 as inputs thereto. Thecontroller 200 utilizes these inputs to generate control signals for theinverter 70. More particularly, the inverter 70 is controlled by pulsewidth modulated (PWM) control signals generated by controller 200 tooutput the desired AC waveform. When the generation facility is online,the controller 200 performs feedback current control by utilizingfeedback current supplied by a current sensor located at an output sidethe inverter 70. When the generation facility is offline, however, thecontrol exercised by the controller 200 changes. Specifically, thecontroller 200 performs feedforward voltage control by utilizingfeedforward voltage supplied by a voltage sensor located at an inputside of the inverter 70. These current and voltage sensors for feedbackcurrent control and feedforward voltage control, respectively may bepart of the inverter 70 or separate therefrom as shown in FIG. 3.

The controller 200 also outputs a disconnect control signal to contactorK1 to control the connection of the generation facility to the utilitygrid 99. Further details of the control method implemented by controller200 are described below.

FIG. 4 illustrates the details of a line power unit 100 according to theinvention. This line power unit (LPU) 100 includes an LPU controller 200that may be programmed according to the techniques disclosed herein.FIG. 4 is a particularly advantageous embodiment of a line power unit100 that may be controlled according to the invention.

FIG. 4 shows the details of the inventive line power unit 100 and itsconnections to the permanent magnet generator 15, engine control unit 12and utility grid 99. The starter unit 220 is generally comprised ofstart inverter 80, precharge circuit 78, transformer 76, and transformer82. The utility interface generally includes the main inverter 70, lowpass filter 72, transformer 74, voltage sensor 98, and contactor K1. TheLPU controller 200 generally includes phase and sequence detectorcircuit 97, transformer 82, full wave rectifier 83 b, full waverectifier 83 a, control power supply 84 and LPU controller 200.Correspondence between the general construction shown in FIG. 1 and thedetailed embodiment shown in FIG. 4 is not important. This descriptionis merely for the purpose of orienting one of ordinary skill to theinventive system.

Turning to the details of the line power unit 100 construction, thepermanent magnet generator 15 has all three phases connected to PMGrectifier 60. A DC bus 61 interconnects PMG rectifier 60 and maininverter 70. A capacitor 62 is connected across the DC bus 61.

The output of the main inverter 70 is connected to transformer 74 vialow pass LC filter 72. A voltage sense circuit 98 is connected to theoutput of the transformer 74 and supplies sensed voltages to the LPUcontroller 200 utilizing the data line shown. The voltage sense circuit98 does not interrupt the power lines as may be incorrectly implied inthe drawings. Instead, the voltage sense circuit is connected across thelines between transformer 74 and contactor K1.

A contactor K1 is controlled by LPU controller 200 via a control line asshown in FIG. 4 and provides a switchable connection between transformer75 and the utility grid 99. A neutral line may be tapped fromtransformer 74 as further shown in FIG. 2 and connected to the grid 99.

A separate start inverter 80 is connected to the DC bus 61 and theexternal DC voltage supply which may be constructed with a battery. Thestart inverter 80 is also connected to the permanent magnet generator15.

A precharge circuit 78 is connected to the grid via transformer 76 andtransformer 82. Precharge circuit 78 is further connected to the DC bus61. The precharge circuit 78 has a control input connected to a controldata line that terminates at the LPU controller 200 as shown.

The line power unit 100 also supplies power to a local grid (e.g., 240VAC three phase supplying auxiliary of local loads) via transformer 74.This local grid feeds local loads and the turbine unit including pumpsand fans in the turbine unit.

An auxiliary transformer 77 is also connected to the output of thetransformer 74. The output of the auxiliary transformer 77 is fed tofull wave rectifier 83 to supply full wave rectified power to thecontrol power supply 84. The control power supply 84 supplies power tothe engine control unit 12 and the LPU controller 200 as well as the I/Ocontroller 310.

The I/O controller 310 is connected via data lines to the LPU controller200. The I/O controller 310 is further connected to the engine controlunit 12, display unit 250, and LPU external interface 320. The LPUexternal interface 320 has a connection for communication and controlvia port 321.

The LPU controller 200 has control lines connected to the start inverter80, main inverter 70, precharge circuit 78, transformer 82, andcontactor K1. Furthermore, data is also provided to the LPU controller200 from control/data lines from these same elements as well as thephase and sequence detector 97 that is connected at the output ofcontactor K1. The LPU controller 200 also communicates data and controlsignals to the engine control unit 12.

The engine control unit is supplied power from the control power supply84 and communicates with engine sensors as shown.

State Machine Mode Control

FIG. 5(a) is a state diagram showing the control states and permittedcontrol state transitions. The state diagram shown in FIG. 5(a)describes a state machine that may be implemented with the LPUcontroller 200 to control the line power unit 100 with the definedstates and control state transitions. This state machine provides modecontrol for the following modes of operation: initialization, neutral,pre-charge, turbine start, power on-line, power off-line, and shut down.

The state diagram shown in FIG. 5(a) assumes that the line power unit100 is mounted in an equipment cabinet having cooling fans and pumpscirculating cooling fluid through cold plates. A cold plate is merely adevice that includes a plenum through which cooling fluid is circulatedand to which various power conversion devices such as the main inverter70 and start inverter 80 are mounted. The cold plate acts as a heat sinkfor these devices and thereby prevents overheating. The alternativeshown in FIG. 5(b) assumes that no such cabinet or cooling system ispresent and represents a simplified control state diagram for theinvention.

Before describing the state transitions, a description of each controlstate will first be provided.

The power on/reset condition 500 is not really a control state but,rather, an initial condition that triggers the state machine. Thisinitial condition includes power on of the line power unit 100 or resetof the line power unit 100.

The initialization state 505 occurs after reset or power on andinitializes global variables, initializes the serial communication portsincluding the I/O controller 310 and LPU external interface 320 havingserial ports contained therein, executes a built-in-test (BIT), andinitializes the real-time interrupt facility and input capture interruptwithin the LPU controller 200.

The initialization state also starts the line synchronization techniquesof the invention which are further described below as well as startingthe power factor control method of the invention.

The neutral state 510 monitors commands from the I/O controller 310 andengine control unit 12 to determine the next mode of operation as wellas checking critical system parameters.

The pre-charge state 515 enables the pre-charge unit 78 to charge the DClink as well as checking on the rate of charging to determine correcthardware function. The pre-charge state 515 also performs diagnosticchecks of the main inverter 70 to identify open or short type failures.

The neutral with pre-charge complete state 520 closes contactor K1 andperforms diagnostic tests of the line power unit 100.

The purge cabinet state 525 purges he equipment cabinet in which theline power unit 100 is mounted including turning on any cooling fans andpumps and thereby bring the line power unit 100 into a purged and readystate.

The neutral with purge complete state 530 is an idle state that waitsfor an engine start command from the operator that is routed via port321 to LPU external interface 320 to I/O controller 310 and thereby toLPU controller 200.

The start engine state 535 generally performs the function of startingthe engine that drives the permanent magnet generator 15.

The start engine state 535 resets the start inverter 80 and performsbasic diagnostic checks of the line power unit 100. The start enginestate 535 also verifies the DC link voltage and thereafter sets thepulse width modulated control signal supplied to the start inverter 80to control the maximum speed that the start inverter 80 will drive thepermanent magnet generator 15 as a motor to thereby permit the engine tostart.

More particularly, the start engine state enables the start inverter 80,receives updated speed commands from the engine control unit 12,monitors fault signals from the start inverter 80, and checks the speedof the engine and DC current drawn from the start inverter 80 todetermine a successful start.

Actual starting of the engine is under the control of the engine controlunit 12 which feeds fuel and any necessary ignition signals to theengine that is being spun by the permanent magnet generator 15. Thestart engine state 535 then waits for a signal from the engine controlunit 12 to terminate the start operation which involves sending a stopsignal to the start inverter 80.

Further details of engine starting can be found in related applicationAttorney Docket #1215-380P which is hereby incorporated by reference.

The neutral with start complete state 540 is an idle state wherein theengine is started and the permanent magnet generator 15 is being drivenby the engine thereby producing three-phase power that is rectified byPMG rectifier 60 to supply DC bus 61 with DC power. The neutral withstart complete state essentially waits for a power level command fromthe operator that is routed via port 321, LPU external interface 320,I/O controller 310 to the LPU controller 200.

The power on-line state 545 enables the main inverter 70 in a currentmode and sends pulse width modulated control signals to the maininverter 70 to output three-phase electrical power having the commandedpower level. The power on-line state also performs various system checksto maintain safe operation such as verifying the DC link voltage andcold plate temperatures.

The open contactor state 550 opens the main contactor K1.

The power off-line state 555 switches the main inverter 70 to a voltagemode and sets the power level command to a nominal level to power thelocal loads. The power off-line state may perform various system checksto maintain safe operation.

The shut down state 560 disables the main inverter 70 and reinitializesglobal variables that are utilized by the state machine to control theline power unit 100.

The purge cabinet state 565 performs essentially the same functions asthe purge cabinet state 525 and ensures that the equipment cabinethousing the line power unit 100 cools down.

The open contactor state 570 waits for a nominal cool down period suchas 5 minutes as well as controlling the contactor K1 such that it breaksthe connection with the grid 99 thereby ensuring disconnection from thegrid 99.

The clear faults state 575 clears any fault codes that may havetriggered the shutdown.

The emergency stop indication 580 is not actually a control state, butinstead illustrates the receipt of an emergency stop signal. Theequipment cabinet housing the line power unit 100 preferably includes anemergency stop button that a user may trigger to shut own the system inan emergency.

The open contactor state 585 is triggered by the receipt of an emergencystop signal and opens main contactor K1 thereby breaking the connectionto the grid 99.

The state transitions are represented in the drawings with arrows. Thesearrows convey important information. For example an unidirectional arrowsuch as → indicates a one-direction only permissible state transition. Abi-directional arrow, on the other hand, such as ⇄ indicatesbi-directional permissible state transitions. This may also be expressedby using the following bi-directional and unidirectional permissiblestate transition symbologies: (1) neutral state ⇄ pre-charge state and(2) power on-line state → power off-line state.

The operation of the state machine illustrated in 5(a) will now bedescribed.

After receiving the power on or reset signal 500, the initializationstate 505 is triggered. After completion of the initializationprocedures and successful built-in tests, the state machine permits thetransition to neutral state 510.

The neutral state 510 monitors commands from the operator and enginecontrol unit 12. Upon receiving an appropriate command, the statemachine permits the transition to the pre-charge state 515 from theneutral state 510.

As described above, the pre-charge state 515 triggers the pre-chargeunit 78 to pre-charge the DC bus 61 to a desired pre-charge voltage. Thepre-charge state 515 determines successful pre-charge by monitoring thepre-charge rate and determining whether. the pre-charge voltage iswithin acceptable limits at the end of the pre-charge cycle.

If the pre-charge state 515 determines that the pre-charge cycle is notsuccessful, then the state machine transitions back to the neutral state510 as indicated by the fail path illustrated on FIG. 5(a). Uponsuccessful completion of the pre-charge cycle, however, the statemachine permits the transition from the pre-charge state 515 to theneutral with pre-charge complete state 520.

The neutral with pre-charge complete state 520 closes the main contactorK1 thereby connecting the line power unit 100 to the grid 99.Thereafter, the state machine permits the transition to the purgecabinet state 525.

Upon successful purging of the cabinet and passing of any diagnostictests such as checking the cold plate temperatures, the state machinepermits the transition from the purge cabinet state 525 to the neutralwith purge complete state 530. Upon receipt of a start engine command,the state machine permits the transition to the start engine state 535.

As described above, the start engine state 535 control the startinverter 80 to drive the permanent magnet generator 15 as a motor tospin the engine at a speed to permit the engine to be started. If theengine fails to start, then the state machine transitions to the neutralwith purge complete state 530. If the engine successfully starts, thenthe state machine transitions to the neutral with start complete state540 which waits for the receipt of a power level command from theoperator or a remote host.

Upon receipt of a non-zero power level command, the state machinetransitions from the neutral with start complete state 540 to the poweron-line state 545.

If there is a utility outage, then the state machine transitions to theopen contactor state 550 as further described in the utility outageride-through section below.

On the other hand, receipt of a zero power level command transitions thestate machine from the power on-line state to the neutral with startcomplete state 540.

After the open contactor state 550 completes the operation of openingcontactor K1, the power off-line state 555 is entered. Upon completionof the power off-line procedures in power off-line state 555, the it,state machine transitions to the neutral with start complete state 540.If a shutdown command is received, the state machine then transitions tothe shutdown state 560. The shutdown state 560 is followed by the purgecabinet state 565, open contactor state 570 and clear faults state 575and then the neutral state 510 thereby bringing the line power unit 100into a neutral state.

Upon receipt of an emergency stop signal 58O, the open contactor state585 is triggered. Thereafter, the shutdown state 560 is entered by thestate machine and then the purge cabinet state 565, open contactor state570, clear faults state 575 and neutral state 510 are sequentiallyentered by the state machine.

FIG. 5(b) is a simplified state diagram that simplifies the states andstate transitions illustrated in FIG. 5(a). FIG. 5(b) generally assumesthat there is no cabinet that needs to be purged. The state machine inFIG. 5(b) also consolidates some of the states illustrated in FIG. 5(a).States having the same reference numerals are identical to those shownin FIG. 5(a). The differences are pointed out below.

The neutral with pre-charge complete state 527 shown in FIG. 5(b)differs from the neutral width pre-charge complete state 520 shown inFIG. 5(a) essentially because the purged cabinet state 525 has beeneliminated in FIG. 5(b). The neutral with pre-charge complete state 527closes the main contactor K1 and awaits for receipt of a start enginecommand from an operator or other device such as a remote host.

Further details of such remote host that may be utilized with thisinvention are provided by related application Attorney Docket No.1215-379P the contents of which are hereby incorporated by reference.

The power off-line state 556 shown in FIG. 5(b) also differs from thepower off-line state 555 shown in FIG. 5(a). Essentially, the poweroff-line state 556 combines the open contactor state 550 with the poweroff-line state 555 shown in FIG. 5(a). Thus, the power off-line state556 performs the functions of opening the contactor K1, switching themain inverter 70 to a voltage mode and setting the power level to anominal level to power the local loads. Furthermore, various systemchecks may be performed to maintain safe operation.

The operation of the state machine shown in FIG. 5(b) is essentially thesame as that shown in FIG. 5(a) with differences noted below.

The main difference is the consolidation of the neutral with pre-chargecomplete state 520 and the neutral with purge complete state 530 and theelimination of the purged cabinet state 525 from FIG. 5(a). Thus, whenthe pre-charge state 515 successfully completes the pre-charge cycle,the neutral with pre-charge state 527 is entered by the state machine.

Upon receipt of an engine start command, the start engine state 535 isentered by the state machine. Furthermore, upon a utility outage, thestate machine transitions directly from the power on-line state 545 tothe power off-line state 556 as shown in FIG. 5(b).

By utilizing the state machines of either FIGS. 5(a) or 5(b), theinvention provides a real-time control method for controlling the linepower unit 100. This real-time control unit includes specificallydefined control states that ensure correct and safe operation of theline power unit 100. Furthermore, various system checks and diagnosticsare performed throughout which further ensure safe operation and whichfurther affect state transitions.

Line Synchronization

FIG. 6(a) illustrates the frequency sensing component of the frequencysynthesizing apparatus and method according to the invention in relationto other components of the line power unit 100 and the utility grid 99.

The phase and sequence detecting circuit 97 shown in FIG. 4 may have theconstruction shown in FIG. 6(a). More particularly, the sequencedetector includes a transformer 605 connected to two phases A, B of theutility grid 99. In this way, transformer 605 inputs the voltage andfrequency of the utility grid 99.

This sensed voltage from transformer 605 is supplied to a low passfilter 610 and then to an optical isolator 615. The output of theoptical isolator 615 is a uni-polar square wave as shown in FIG. 6(a)that is supplied to the line power unit controller 200. Specifically,the line power unit controller includes a vector control board 210having an A/D converter 215 that accepts the uni-polar square wave fromthe optical isolator 615.

The A/D converter preferably converts this uni-polar square wave into a10-byte digital signal that is fed to the digital signal processor (DSP)220. The output of the DSP 220 is fed to a pulse width modulation (PWM)signal generation device 225.

The pulse width modulation signals from PWM 225 are fed to gate drivecircuit 230 which drives the IGBT switches 71 located within the maininverter 70. The main inverter 70 is fed a DC voltage from DC bus 61 asshown in FIG. 4. For simplicity, this connection is not shown in FIG.6(a).

The output of the main inverter 70 is filtered by inductor 72. Then, thevoltage is stepped up by transformer 74 and supplied to the utility gridvia contactor K1. The output of the transformer 74 also supplies localloads as shown in FIG. 6a.

The frequency synchronization apparatus shown in FIG. 6(a) operates inthe following general manner. The output of the optical isolator 615 isa uni-polar square wave with a voltage swing preferably within thelimits of the A/D converter 215. The DSP 220 controls the A/D converter215 by initiating the conversion and reading of the digital value at afixed frequency. This fixed frequency establishes the time base forwhich the inventive methods can compute the actual frequency of thesignal and thereby the actual frequency of the utility grid 99. This isaccomplished by determining when the falling edge of. the signaloccurred and counting the number of samples between successive fallingedges.

Alternatively, the invention could utilize the rising edge of thesignal, but for simplicity this explanation will focus on the fallingedge FIGS. 6(b)-(d) illustrate various signals utilized by the inventionto perform synchronization. FIG. 6(b) illustrates the SYNC signal thatis the fixed frequency signal utilized by the DSP 220 to control theinitiation and reading of the data from the A/D converter 215. FIG. 6(c)illustrates the THETA signal which is a variable in software that isutilized to represent the angle of the utility sine wave and ranges from0° to 360° in a series of stepped ramps each of which runs from 0° atthe falling edge of the SYNC pulse to 360° at the next falling edge ofthe SYNC pulse. FIG. 6(d) illustrates THETA˜which is the phase shiftadded to THETA for power factor control as further described below.

The synchronization method is further illustrated in FIG. 7(a)-(b). Asshown in FIG. 7(a), the synchronization function is started or calledevery 64 microseconds at which time step 702 causes the digital signalprocessor 220 to read the A/D 215 input. As further illustrated in FIG.7 (a), the input signal is a square wave at the frequency of the grid.

Then, step 704 sets the minimum, maximum and typical constants which areset according to the selected grid frequency. The grid frequency ischosen between either 50 or 60 hertz which thereby effects the valuesfor the minimum, maximum and typical constants in step 704.

Thereafter, step 706 increments the frequency counter which isrepresented as FreqCount=FreqCount+1. The variable FreqCount is thenumber of times this routine is called between falling edges of theinput signal.

After step 706, then step 708 checks whether the FreqCount variable isout of range. If so, the Count variable is set to a typical value instep 710 and the step 712 then clears the status flag that wouldotherwise indicate that the line power unit 100 is in synchronizationwith the grid 99. In other words, step 712 clears this status flagthereby indicating that the line power unit is not in synchronizationwith the grid 99.

After step 712 or if decision step 708 determines that the FreqCount isnot out of range, then step 714 then determines whether there is aninput from the falling edge detector. Step 714 determines whether thefalling edge of the synchronization pulse has occurred. If yes, then theflow proceeds to jump point A which is further illustrated in FIG. 7(b).

Step 708 essentially determines whether the grid 99 is present orwhether there is a utility outage. If there is utility outage, then theFreqCount variable will exceed the maximum thereby causing the system toset the count value to a typical value in step 710.

FIG. 7(b) continues the frequency synchronization process beginning witha determination of whether the frequency of the incoming signal, inputis within the correct range. Particularly, step 716 determines whetherthe FreqCount variable is within the minimum and maximum values. If not,then step 722 sets the count variable to a typical value and then step724 sets a status flag indicating synchronization error.

On the other hand, if the FreqCount variable is within the correct rangeas determined by step 716, then step 718 sets the Count variable equalto 360°/FreqCount. Then step 720 clears the status flag indicating nosynchronization error.

After either steps 720 or 724, the method executes step 726 which resetsthe FreqCount variable to 0.

Thereafter, the method then determines whether THETA is insynchronization with the incoming signal input. THETA should equal 0 atthe same time the falling edge of the input signal is detected ifsynchronization has occurred. This is determined by step 728 whichchecks whether THETA is substantially equal to 360° or 0°. If not, thestatus flag is cleared by step 732 indicating that the line power unitis not in synchronization. If yes, then step 730 sets the status flagindicating that the LPU 100 is in synchronization with grid 99.

After setting the status flags in step 730 or step 732 then the processadjusts THETA to maintain or achieve synchronization with the inputsignal. Particularly, step 734 first determines if THETA is less than180°. If yes, then the error variable is set to minus THETA. If not,then step 738 sets the error variable equal to 360°−THETA.

After setting the error variable in step 736 or step 738, then themethod proceeds to limit the rate of change of the Error variable. Thepreferred embodiment shown in FIG. 7b limits the Error variable to+/−0.7° in step 740. Thereafter, step 742 sets the THETA variable equalto THETA plus the Error variable.

After step 742, the flow returns via jump point B to the flow shown inFIG. 7(a) beginning with step 744.

As further shown in FIG. 7(a), the process proceeds after jump point Bby generating THETA by incrementing THETA by the count variable every 64microseconds. This process generates the THETA signal shown in FIG.6(c). More particularly, step 744 sets THETA=THETA+Count therebyincrementing THETA.

After step 744, decision step 746 determines whether THETA is greaterthan 360°. If yes, step 748 resets THETA to THETA minus 360° to bringTHETA within range.

If not, then step 750 determines the phase shift variable THETA˜ bysetting THETA˜ equal to THETA plus any desired phase shift.

THETA˜ is an optional variable as is step 750. This optional step 750permits an operator to adjust the power factor of the three phase powerdelivered to the grid 99 by utilizing the phase shift variable. Inessence, the operator merely needs to input data to set the phase shiftvariable to thereby adjust the power factor. Step 750 can then adjustthe power factor by setting THETA˜=THETA+phase shift.

After step 750, the synchronization function has completed itsoperations as indicated by end of SYNC function step 752. This routineis again called after 64 microseconds have elapsed since the initiationof the SYNC function in step 700.

The inventive methodology illustrated in FIGS. 7(a) and 7(b) outputs aTHETA˜ that is utilized by a known vector algorithm in the vector board210 to generate pulse width modulation signals from PWM 225 that are fedto gate drive 230 to thereby control the main inverter 70. Such pulsewidth modulation control of the power can then shift the phase of thepower output from main inverter 70 and thereby bring the output powerinto synchronization with the utility grid 99.

Instead of sampling the grid frequency, circuit 97 may also synthesize agrid frequency. This is necessary when the line power unit 100 isoperating in a stand-alone mode or when the utility grid 99 is notavailable. Thus, the system must synthesize a frequency when the grid istemporarily disconnected so that the output power frequency isself-regulating.

One of the advantages of the inventive line synchronization technique isthat it limits the resynchronization rate in step 740. By limiting theresynchronization rate, the invention provides a smooth transition fromout-of-SYNC line power unit 100 to an in-SYNC line power unit 100 thatis in synchronization with the utility grid 99. This reduces transientvoltages, stress on the components and increases safety.

As further described above, this line synchronization technique alsopermits power factor control such that an operator or remote host caninput a phase shift data via port 321 and thereby control the powerfactor of power supplied to the grid 99.

Utility Outage Ride-through

The state machines described in FIGS. 5(a)-(b) include states that areinvolved in the utility outage ride-through methodology. Specifically,the neutral with start complete state 540, power on-line state 545, opencontactor state 550, and power off-line state 555 shown in FIG. 5(a) arethe control states involved in the utility outage ride-throughmethodology.

Alternatively, the neutral with start complete state 540, power on-linestate 545 and power off-line state 556 shown in FIG. 5b are alternativecontrol states that may also be utilized by the utility outageride-through methodology of this invention.

The utility outage ride-through methodology may be implemented within acontroller such as the controller 200 shown in FIG. 3 or the LPUcontroller 200 shown in FIG. 4.

The utility outage ride-through method that may be programmed into theLPU controller 200 is shown in FIG. 8. Furthermore, the utility outageride-through methodology shown in FIG. 8 may be utilized by the statemachine shown in FIGS. 5a-b to control the state transitions mentionedabove.

The utility outage ride-through method shown in FIG. 8 begins with step800. Then, steps 805, 810, 815, 820, 825 determine the existence of afault condition. Upon the occurrence of any of these fault conditions,then the flow proceeds to open main contactor step 830.

More particularly, step 805 determines whether there is a loss ofutility authorization. In general, most electric utilities sendauthorization data to each electrical power generator supplying power tothe grid 99. In this way, the utility can either authorize or cancelauthorization for connection to the grid 99. Step 805 determines whetherthe utility authorization has been cancelled.

Step 810 determines whether there is a loss of phase. This may beperformed by sampling the input from the phase and sequence detector 97.If any of the phases have been lost, then step 810 directs the flow toopen main contactor step 830.

Similarly, loss of synchronization step 810 determines whether there isa loss of synchronization between the line power unit 100 and the grid99. This loss of synchronization may be determined from the status flag“LPU in SYNC” set by the synchronization method described above inrelation to FIGS. 7(a)-(b).

Step 820 decides whether the industrial turbo generator (ITG) host hassent an off-line command via port 321 to the LPU controller. It is notessential that an ITG host be utilized, and this step 820 may besimplified to receive any off-line command by LPU controller 200.

Step 825 determines whether the AC voltage of the grid 99 is out ofrange. The voltage sense circuit 98 senses this AC grid 99 voltage andsends a signal to the LPU controller 200 which can thereby determinewhether the VAC is out of range in step 825.

If any fault condition has occurred, then step 830 is executed whichopens the main contactor K1 and disconnects the line power unit 100 fromthe grid 99.

Thereafter, step 835 resets or clears a time counter which is preferablya 30 second time counter.

Then, step 840 sets the operational mode to off-line which causes thestate machine of FIG. 5(a) to transition from the open contactor state550 to the power off-line state 555. The power on-line state 545 to opencontactor state 550 transition occurs in step 830 and is triggered byany of the fault conditions described above.

Thereafter, off-line voltage control is initiated by step 845 whereinthe main inverter 70 is controlled by LPU controller 200 in a voltagecontrol mode for stand-alone operation and feeding of the local loads.

After setting the off-line voltage control in step 845, step 850 enablesthe main inverter 70 to thereby supply power to the local loads. Thisends the flow as indicated by step 895.

The system then continues checking the occurrence of fault conditions asdescribed above. Continued fault conditions have the effect of clearingthe 30 second counter each time.

When all of the faults have been cleared, then the flow proceeds to step855 which determines whether the on-line or off-line mode (state) isbeing utilized by the line power unit 100. Continuing with this example,the off-line mode is now utilized by the state machine. Thus, the modedetermination step 855 directs the flow to step 860 which beginsincrementing the 30 second counter.

If the counter has not yet reached the 30 second time limit, then step865 directs the flow to off-line voltage control setting step 845 andenable three phase inverter step 850 the effect of which is to return orloop back to the increment 30 second counter step 860.

This loop continues until the 30 second counter has elapsed asdetermined by step 865. Thereafter, step 870 disables the main inverter70. After disabling the main inverter 70, step 875 closes main contactorK1 thereby connecting the line power unit 100 to the grid 99. Then, themode is set to the on-line mode which transitions the state machine fromthe neutral with start complete state 540 to the power on-line state545. This also causes the next loop to take the left branch asdetermined by the mode determination step 855 which will now sense theon-line mode.

If the mode is on-line, the flow proceeds from step 855 to on-linecurrent control step 885 which controls the main inverter 70 in acurrent control mode. Thereafter, step 890 enables the inverter 70 tothereby supply power to the grid 99 via closed contactor K1. The processis then completed as indicated by end step 895.

By utilizing the utility outage ride-through methodology above, theinvention has the capability of detecting a utility outage or otherfault condition thereby triggering disconnection from the grid. Theinvention also provides a smooth transition from a current mode (utilityconnected) to a voltage mode (utility outage) for the main inverter 70.

The benefit is more stability and faster response to wide swings ingenerator voltage. The invention also has the feature of over-currentlimiting which is a self-protection function which prevents voltagebrown-out at excessive current levels. This method also easilytransitions from voltage mode to current mode when reconnecting to thegrid thereby minimizing transients on power output to the grid 99.

When the line power unit 100 disconnects from the grid 99, a typicalsystem will vary greatly in speed and output voltage as it is rapidlyunloaded. To prevent such large voltage swings from reaching theinverter 70 output, a feed forward technique is utilized as describedabove to control the inverter 70 output voltage.

Using such feed forward control; the generator voltage is sampled andused to establish the modulation index of the pulse-width modulatedsinusoidal voltage produced by the inverter 70 keeping the sinusoidaloutput voltage nearly constant. This control technique provides the highlevel of stability and fast response needed for rapid changes of inputvoltage. Over-current protection is provided by reducing the modulationindex when the maximum allowed output current is reached, producing abrown-out effect.

When the grid power is restored, the line power unit 100 voltage isfirst synchronized with the grid voltage. After synchronizing with thegrid (as determined by step 815 and implemented by the synchronizationtechniques described above), normal current controlled power flow intothe grid 99 can then resume.

Power Factor Control

The system may be further enhanced by providing an apparatus and methodfor controlling the power factor of power delivered to the grid 99.Although the synchronization control described above also provides powerfactor control, the invention also provides an alternative control loopthat controls the power factor.

The power factor control device and methods according to the inventionmay be applied to a wide variety of grid-connected generation facilitiesas graphically illustrated by FIG. 2. The current controlled inverter 70may be controlled with the device shown in FIG. 9.

FIG. 9 illustrates a device for controlling power factor that interfaceswith a current controlled inverter 70 as shown in FIG. 9 or,alternatively, the current controlled inverter 70 shown in FIGS. 2 or 4.

This power factor control device includes a sensor 98 that senses thecurrent supplied to the utility 99 from the inverter 70. All threephases (I_(a), I_(b), I_(c)) of the current supplied to the utility 99are sensed by sensor 98 and supplied to three-phase to two-phasetransformer 905 to output two-phase D-Q coordinate signals I_(d), I_(q).

The two-phase signals I_(d), I_(q) are then supplied to astationary-to-rotating reference frame transformation unit 910 thatchanges the two-phase AC signals (I_(d), I_(q)) from the stationary to asynchronously rotating reference frame which converts the signals fromAC to DC.

The DC signals are then compared against reference signals I_(q Ref),I_(d Ref) by comparators 920 and 925, respectively. The comparators 920,925 are preferably proportional-plus-integral gain stages that performproportional-plus-integral comparison operations between the referencesignals I_(q Ref), I_(d Ref) and the DC signals I_(d), I_(q).

The reference signals I_(q Ref), I_(d Ref) may be supplied by the LPUcontroller 200 which, in turn, may be supplied these reference signalsfrom an operator via port 321, LPU external interface 320, I/Ocontroller 310. In this way, either the LPU controller 200 or theoperator can command the power factor.

Furthermore, the utility may also request a certain power factor to besupplied to the grid 99 by the line power unit 100. Such a request canbe fed to the system via the reference signals I_(q Ref), I_(d Ref).

The proportional plus integral gain stages 920, 925 output voltagesignals V_(q), V_(d) that are transformed back to a stationary referenceframe by rotating to stationary reference frame transforming unit 930 tooutput AC voltages V_(q), V_(d). These AC voltages are then subjected toa two-phase to three-phase transform by unit 935 to thereby outputthree-phase voltages V_(a), V_(b), V_(c) which are then sent to a pulsewidth modulator which controls the switches in a three-phase, full-waveIGBT bridge within the inverter 70 to produce AC currents (I_(a), I_(b),I_(c)) with a vector that contains the real and reactive componentscommanded by I_(d Ref) and I_(q Ref).

This power factor control loop provides independent control of the realand reactive components of the current output to utility 99. Thisinvention draws upon widely known vector control techniques developedfor induction motor drives. The desired amplitudes of real and reactivecurrent supplied to the utility 99 are commanded by I_(q ref) andI_(d ref), respectively. The control loop described above drives theoutput current to the utility (I_(a), I_(b), I_(c)) so that themagnitude and phase contain the commanded real and reactive currentcomponents.

This is often beneficial in improving the power factor in the utilitydistribution system 99. Furthermore, the utility interface 99 may alsobe a local grid. Such a local grid may also require power factorcorrection due to large inductive or capacitive loads on the local grid.The poor power factor that such large inductive or capacitive loadscause may be corrected by utilizing the power factor control method andapparatus disclosed herein.

The invention being thus described, it will be obvious that the same maybe varied in many ways. Such variations are not to be regarded asdeparture from the spirit and scope of the invention, and all suchmodifications as would be obvious to one skilled in the art are intendedto be included within the scope of the following claims.

What is claimed is:
 1. A method of controlling real and reactive powerdeveloped by a main inverter in an electrical power generation controldevice, comprising the steps of: sampling the three-phase currentsoutput from said inverter, transforming the sampled three-phase currentdata to two-phase current data, transforming the two-phase current datato a rotating reference frame, controlling an output voltage accordingto a comparison result between a DC reference signal having a real and areactive reference signal component, transforming the output voltage toa stationary reference frame, transforming the stationary referenceframe output voltage to a three-phase reference signal, and controllingsaid inverter based on the three-phase reference signal, wherein the DCreference signal designates the real and reactive power output by thecontrolled inverter.
 2. The method according to claim 1, furthercomprising the step of: connecting the electrical power generationcontrol device to a grid, determining the value of the DC referencesignal according to utility power factor request data supplied by autility feeding the grid.
 3. The method according to claim 1, furthercomprising the step of: determining the value of the DC reference signalaccording to a power factor command received from an operator interface.4. The method according to claim 1, said output voltage controlling steputilizing a proportional and integral control method.
 5. The methodaccording to claim 1, said inverter control step generating a PWMcontrol signal based on the three-phase reference signal to control theinverter output.